<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link href="{$Think.config.RESOURCEURL}wx_assets/css/webpage.css?v=2013-12-17" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="{$Think.config.RESOURCEURL}wx_assets/css/page.css?v=2013-11-21">
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/wx_share.js{$Think.config.RESOURCE_VER}"></script>
<script>
function dourl(url){
	location.href= url;
}

var hrefParamsArray = GetParamsFromHref(window.location.search);

function GetParamsFromHref(search){
	var args = search.substring(1); 
　　	var retval = new Array(); 
	args = args.split("&"); 
		for(var i = 0; i < args.length; i ++){ 
			str = args[i]; 
			var arg = str.split("="); 
			if(arg.length <= 1) {
				continue; 
			}
			if(arg[0] == 'params') {
				var params = decodeURIComponent(arg[1]);
				var obj = eval('(' + params + ')');
				retval["start"] = obj.start;
				if (obj.tagname != undefined) {
					retval["tagname"] = obj.tagname;
				} else if (obj.id != undefined) {
					retval["tagid"] = obj.id;
				}
			} else if(arg[0] == 'customerId') {
				retval["customerId"] = arg[1]; 
			}else if(arg[0] == 'userName'){
				retval["userName"] = arg[1]; 
			}
		} 
		
		if (retval["start"] == undefined) {
			retval["start"] = 0;
		}
		return retval; 
}
var limit = 10;
var pageCount = Math.ceil({$total} / limit);
var page = Math.ceil(hrefParamsArray["start"] / limit) + 1;
</script>
</head>

<body id="listhome3">
	
	<notempty name="results[0].picUrl">
		<div class="Listpage">
		<div id="todayList">
			<ul class="chatPanel">
			<li class="headMedia mediaFullText">
							<div class="headMediaImg">
								<img src="{$results[0].picUrl}">
							</div>
						</li>
					</ul>
				</div>
		</div>	
		</notempty>	
		
	<div id="ui-header">
			
		<div class="fixed">
			<a class="ui-title" id="nonpopmenu">{$results[0].tagName}</a>
			<notempty name="results[0].description">
			<a class="ui-title-son" id="nonpopmenuson">{$results[0].description}</a>
			</notempty>
			
		</div>
	</div>
	<div id="overlay" style="display: none;"></div>
	<div class="Listpage">
	<!-- <div class="top46"></div> -->
		<div id="todayList">
			<ul class="chatPanel">
				<volist name="results" id ="result">
				<li class="media mediaFullText">
					<script>						
							var baseUrl = '{$Think.config.SERVER_HOST}';
							var pageId = '{$result.id}';
							var tplId = '{$result.tplid}';
							var urlString = baseUrl + "call.html?customerId="+ hrefParamsArray["customerId"]+ "&userName=" +
									hrefParamsArray["userName"] +
									"&module=webPage&method=getWebPage&params=%7B%22id%22:"+pageId+",%22tplid%22:"+tplId+"%7D";
							document.write("<a href='"+urlString+"' >");				
						</script>
						<div class="mediaPanel">
							<notempty name="result.title">
								<div class="mediaHead">
									<span class="title">{$result.title}</span>
									<!-- 
									<script>var time = '{$result.updateTime}'; time = time.split(" ")[0]; document.write("<span class='time'>" + time + "</span>");</script>
									 -->
								</div>
							</notempty>
							<div class="clr"></div>
							
							<notempty name="result.picurl">
							<div class="mediaImg">
								<img src="{$result.picurl}">
							</div>
							</notempty>
							<div class="mediaContent mediaContentP">
								<p>{$result.description}</p>
							</div>
							<notempty name="result.rateCount">
							<div class="mediaFooter">
								<div class="rate">{$result.rateCount}</div>
								<div class="comment">{$result.commentCount}</div>
								<div class="clr"></div>
							</div>
							</notempty>
						</div>
				</a></li>
				</volist>
			</ul>
		</div>
		<div class="pagination"  id="pagination" >
			<div id="pagePrev">
			<script>if (page != 1) {
				var baseUrl = '{$Think.config.SERVER_HOST}';
				var start = parseInt(hrefParamsArray["start"]) - limit;
				var params = '';
				if (hrefParamsArray["tagname"] != undefined) {
					params = '\"tagname\":\"' + hrefParamsArray["tagname"] + '\"';
				} else if (hrefParamsArray["tagid"] != undefined) {
					params = '\"id\":' + hrefParamsArray["tagid"];
				}
				var urlString = baseUrl + 'call.html?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"]
				+ "&module=webSite&method=getWebSiteTag&params={" + params + ",\"start\":" + start + "}";
				document.write("<a href='" + urlString + "'>上一页</a>");
			} else {
				document.write("<a href='javascript:void(0)' style='background:none;border:1px solid #cbcbcb;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;color:A4A3A3;cursor: default;'>上一页</a>");
			}
			</script>
			</div>
			<div class="allpage">
				<div class="currentpage"><script>document.write(page + "/" + pageCount);</script></div>
			</div>
			<div id="pageNext">
			<script>if (page != pageCount) {
				var baseUrl = '{$Think.config.SERVER_HOST}';
				var start = parseInt(hrefParamsArray["start"]) + limit;
				var params = '';
				if (hrefParamsArray["tagname"] != undefined) {
					params = '\"tagname\":\"' + hrefParamsArray["tagname"] + '\"';
				} else if (hrefParamsArray["tagid"] != undefined) {
					params = '\"id\":' + hrefParamsArray["tagid"];
				}
				var urlString = baseUrl + 'call.html?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"]
				+ "&module=webSite&method=getWebSiteTag&params={" + params + ",\"start\":" + start + "}";
				document.write("<a href='" + urlString + "'>下一页</a>");
			} else {
				document.write("<a href='javascript:void(0)' style='background:none;border:1px solid #cbcbcb;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;color:A4A3A3;cursor: default;'>下一页</a>");
			}
			</script>
			</div>
		</div>
	</div>
	
	<script type="text/javascript">
	if(pageCount == 1 && page == pageCount){
		document.getElementById("pagination").style.display="none";
	}

	function orderDetail(oid) {
		window.location.href = 'call.html?userName=' + hrefParamsArray['userName'] + '&customerId='
		+ hrefParamsArray['customerId'] + '&module=store&method=getStoreReserveOrderDetail&params={"id":' + oid + '}';
	
	}
</script>
	<script type="text/javascript">
		wx_share.init({
			"title":"{$title}",
			"desc":'{$shareinfo}',
			"link":location.href,
			"imgUrl": '{$sharepicurl}',
			"pkg":{
				"appId": '{$pkg.appId}',
				"timestamp": '{$pkg.timestamp}',
				"nonceStr": '{$pkg.nonceStr}',
				"signature": '{$pkg.signature}'
			},
			success:function(config,shareType){
			}
		});
	</script>
</body>
</html>